package com.xw.db137.service.impl;

import com.xw.db137.entity.User;
import com.xw.db137.mapper.UserMapper;
import com.xw.db137.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
  * @Author: xw
  * @CreateTime: 2024/12/24
  * @Description: 用户
  * @Version: 1.0
  */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public int getId(String name, String pwd) {
        return this.baseMapper.getId(name, pwd);
    }

    @Override
    public int insertUser(String name, String pwd) {
        return this.baseMapper.insertUser(name, pwd);
    }

    @Override
    public User getUserById(int id) {
        return this.baseMapper.getUserById(id);
    }
}
